//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.lx.redisdemo.entity;

import java.io.Serializable;

public class Book implements Serializable {
    private Integer id;
    private String name;
    private Double price;
    private String category;
    private Integer pnum;
    private String imgurl;
    private String description;
    private String author;
    private Integer sales;

    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return this.price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getCategory() {
        return this.category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public Integer getPnum() {
        return this.pnum;
    }

    public void setPnum(Integer pnum) {
        this.pnum = pnum;
    }

    public String getImgurl() {
        return this.imgurl;
    }

    public void setImgurl(String imgurl) {
        this.imgurl = imgurl;
    }

    public String getDescription() {
        return this.description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getAuthor() {
        return this.author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Integer getSales() {
        return this.sales;
    }

    public void setSales(Integer sales) {
        this.sales = sales;
    }

    public String toString() {
        return "Book{id=" + this.id + ", name='" + this.name + "', price=" + this.price + ", category='" + this.category + "', pnum=" + this.pnum + ", imgurl='" + this.imgurl + "', description='" + this.description + "', author='" + this.author + "', sales=" + this.sales + "}";
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof Book)) {
            return false;
        } else {
            Book other = (Book)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label119: {
                    Object this$id = this.getId();
                    Object other$id = other.getId();
                    if (this$id == null) {
                        if (other$id == null) {
                            break label119;
                        }
                    } else if (this$id.equals(other$id)) {
                        break label119;
                    }

                    return false;
                }

                Object this$price = this.getPrice();
                Object other$price = other.getPrice();
                if (this$price == null) {
                    if (other$price != null) {
                        return false;
                    }
                } else if (!this$price.equals(other$price)) {
                    return false;
                }

                label105: {
                    Object this$pnum = this.getPnum();
                    Object other$pnum = other.getPnum();
                    if (this$pnum == null) {
                        if (other$pnum == null) {
                            break label105;
                        }
                    } else if (this$pnum.equals(other$pnum)) {
                        break label105;
                    }

                    return false;
                }

                Object this$sales = this.getSales();
                Object other$sales = other.getSales();
                if (this$sales == null) {
                    if (other$sales != null) {
                        return false;
                    }
                } else if (!this$sales.equals(other$sales)) {
                    return false;
                }

                label91: {
                    Object this$name = this.getName();
                    Object other$name = other.getName();
                    if (this$name == null) {
                        if (other$name == null) {
                            break label91;
                        }
                    } else if (this$name.equals(other$name)) {
                        break label91;
                    }

                    return false;
                }

                Object this$category = this.getCategory();
                Object other$category = other.getCategory();
                if (this$category == null) {
                    if (other$category != null) {
                        return false;
                    }
                } else if (!this$category.equals(other$category)) {
                    return false;
                }

                label77: {
                    Object this$imgurl = this.getImgurl();
                    Object other$imgurl = other.getImgurl();
                    if (this$imgurl == null) {
                        if (other$imgurl == null) {
                            break label77;
                        }
                    } else if (this$imgurl.equals(other$imgurl)) {
                        break label77;
                    }

                    return false;
                }

                label70: {
                    Object this$description = this.getDescription();
                    Object other$description = other.getDescription();
                    if (this$description == null) {
                        if (other$description == null) {
                            break label70;
                        }
                    } else if (this$description.equals(other$description)) {
                        break label70;
                    }

                    return false;
                }

                Object this$author = this.getAuthor();
                Object other$author = other.getAuthor();
                if (this$author == null) {
                    if (other$author != null) {
                        return false;
                    }
                } else if (!this$author.equals(other$author)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof Book;
    }


    public Book(final Integer id, final String name, final Double price, final String category, final Integer pnum, final String imgurl, final String description, final String author, final Integer sales) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.category = category;
        this.pnum = pnum;
        this.imgurl = imgurl;
        this.description = description;
        this.author = author;
        this.sales = sales;
    }

    public Book() {
    }
}
